package com.qianyu.project.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianyu.project.entity.ProjectInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qianyu.project.mapper.provider.mfy.ProjectInfoProvider;
import com.qianyu.project.mapper.provider.zy.ZYProjectInfoProvider;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.lang.reflect.Method;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 项目立项信息 Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Repository
public interface ProjectInfoMapper extends BaseMapper<ProjectInfo> {

    @SelectProvider(method = "MfyCreatedList",type = ProjectInfoProvider.class )
    IPage<ProjectInfo> MfyCreatedList(IPage<ProjectInfo> page, @Param("params") Map<String, String> params);




//    @SelectProvider(method = "getZYList",type = ZYProjectInfoProvider.class)
//    List<ProjectInfo> getZYList();

    @SelectProvider(method = "WyhCreatedList",type = ProjectInfoProvider.class )
    IPage<ProjectInfo> WyhCreatedList(IPage<ProjectInfo> page,@Param("params") Map<String, String> params);


}
